import xml改纯注解.config.SpringConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext atx=new AnnotationConfigApplicationContext(SpringConfig.class);
        DataSource bean = atx.getBean(DataSource.class);
        System.out.println(bean);
    }
}
